<template>
  <div>
    <el-carousel height="auto" autoplay  v-if="list[0] != null">
      <el-carousel-item v-for="item in list" :key="item" class="w-100% h-500px">
        <div>
          <img ref="bannerImg" class="w-100% h-500px" :src="item.img" alt="" />
        </div>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script setup lang="ts">
defineProps({
  list: {
    type: Array,
    default: []
  }
})
</script>

<style scoped></style>
